/************************************************************
 * Copyright (C), 2022-2030, ripnano. Co., Ltd.
 * FileName:        form_setting_version.h
 * Author:          Dan Yin
 * Date:            2023-06-21
 * Description:     the class of version setting window
 * Version:         1.0.0.0
 **********************************************************/

#ifndef FORM_SETTING_VERSION_H
#define FORM_SETTING_VERSION_H

// add necessary includes here
#include "ui/defines/global.h"

namespace Ui {
class FormSettingVersion;
}

class FormSettingVersion : public QWidget
{
    Q_OBJECT

public:
    // Get an instance of "FormSettingVersion" class, if exist, return it
    static FormSettingVersion* getInstance(QWidget *pParent = nullptr);

signals:
    // Goto the home window
    void signalShowHomeWindow();

    // Goto the setting window
    void signalShowSettingWindow();

    // The signal that refresh UI info
    void signalRefreshUI();

private slots:
    // Return main window after click the button
    void on_pushButton_Home_clicked();

    // Return the setting window after click the button
    void on_pushButton_Setting_clicked();

    // The slot that refresh UI info
    void slotRefreshUI();

protected:
    // Triggers an event before it is switch language
    void changeEvent(QEvent *event);

private:
    // The default constructor
    explicit FormSettingVersion(QWidget *parent = nullptr);

    // The default destructor
    virtual ~FormSettingVersion();

    // After constructing object, initialize the object
    void _Initialze();

    // Init the window style
    void _InitUi();

    // Display the company name
    void _showCompanyName();

private:
    Ui::FormSettingVersion *ui;
};

#endif // FORM_SETTING_VERSION_H
